package com.huawei.chengdu.meetingdemo.consts;

import com.device.idea.meeting.MultiStream.model.LayoutMode;
import com.device.idea.meeting.MultiStream.model.StreamType;

import java.util.Arrays;
import java.util.HashSet;
import java.util.List;

public interface ConfConst {
    /**
     * pid APP进程ID
     */
    String PID = "idea_meeting_demo";

    /**
     * 默认呼出带宽
     */
     int DFT_CALL_WIDTH = 3840;

    /**
     * 底部会控栏的高度
     */
     int BOTTOM_CONF_HEIGHT = 168;

    /**
     * 弹框距离底部距离，固定字段请勿改动
     */
     int COMMON_MARGIN_Y = -22;

    /**
     * 桌面app
     */
    String PACKAGE_LAUNCHER = "com.device.launcheridea";

    /**
     * 设置app
     */
    String PACKAGE_SETTING = "com.device.settings";

    /**
     * 状态栏app
     */
    String PACKAGE_SYSTEM_UI = "com.android.systemui";

    /**
     * 会议app
     */
    String PACKAGE_CALL = "com.device.meeting";

    /**
     * 投屏app
     */
    String PACKAGE_SHARE = "com.device.connect";

    /**
     * 白板app
     */
    String PACKAGE_CP = "com.device.cp";

    /**
     * 软件更新 包名
     */
    String HWOUC = "com.huawei.android.hwouc";

    /**
     * 文件管理
     */
    String PACKAGE_FILE_EXPLORE = "com.device.fileexplore";

    /**
     * 壁纸服务的包名
     */
    String PACKAGE_WALLPAPER_SERVICE = "com.device.idea.wallpaperservice";

    /**
     * 显示PIP小窗的布局类型
     */
    HashSet<LayoutMode> PIP_LAYOUT_MODE = new HashSet<LayoutMode>(){{
        add(LayoutMode.PIP_LEFT_TOP);
        add(LayoutMode.PIP_LEFT_BOTTOM);
        add(LayoutMode.PIP_RIGHT_TOP);
        add(LayoutMode.PIP_RIGHT_BOTTOM);
    }};
    /**
     * pip小窗位置参数
     */
    int PIP_LEFT = 60;
    int PIP_RIGHT = 3170;
    int PIP_TOP = 160;
    int PIP_BOTTOM = 1660;
    int PIP_MOVE_MIN_DISTANCE = 200;

    /**
     * 二分屏位置参数
     */
    int SPLIT_LEFT = 48;
    int SPLIT_RIGHT = 1928;
    int SPLIT_Y = 560;
    int SPLIT_WIDTH = 1864;
    int SPLIT_HEIGHT = 1048;

    /**
     * 三分屏位置参数
     */
    int THREE_SPLIT_BIG_WIDTH = 2952;
    int THREE_SPLIT_BIG_HEIGHT = 1640;
    int THREE_SPLIT_SAMLL_WIDTH = 776;
    int THREE_SPLIT_SMALL_HEIGHT = 440;
    int THREE_SPLIT_LB1RS2_LEFT_X = 48;
    int THREE_SPLIT_LB1RS2_LEFT_Y = 256;
    int THREE_SPLIT_LB1RS2_RIGHT_X = 3016;
    int THREE_SPLIT_LB1RS2_RIGHT_TOP_Y = 632;
    int THREE_SPLIT_LB1RS2_RIGHT_BOTTOM_Y = 1084;
    int THREE_SPLIT_UB1BS2_UP_X = 444;
    int THREE_SPLIT_UB1BS2_UP_Y = 32;
    int THREE_SPLIT_UB1BS2_BELOW_Y = 1688;
    int THREE_SPLIT_UB1BS2_BELOW_LEFT_X = 1136;
    int THREE_SPLIT_UB1BS2_BELOW_RIGHT_X = 1928;

    /**
     * 需要处理的5种流类型
     */
    HashSet<StreamType> TARGET_STEAM_TYPE = new HashSet<StreamType>(){{
        add(StreamType.STREAM_LOCAL_MAIN);
        add(StreamType.STREAM_REMOTE_MAIN);
        add(StreamType.STREAM_REMOTE_AUX);
        add(StreamType.STREAM_WIRELESS_PROJECTION);
        add(StreamType.STREAM_WIRED_PROJECTION);
    }};

    /**
     * 屏幕宽度
     */
    int SCREEN_WIDTH = 3840;

    /**
     * 左右48px 有阴影14px
     */
    int HORIZONTAL_MARGIN_DISTANCE = 34;

    /**
     * 会控栏距离底部32px，有14px的阴影
     */
    int BOTTOM_CONF_MIN_Y = 18;

    /**
     * 共享app需要过滤的列表
     */
    List<String> EXCLUDE_APPS = Arrays.asList(PACKAGE_LAUNCHER, PACKAGE_SETTING, PACKAGE_SYSTEM_UI,
                    PACKAGE_CALL, PACKAGE_SHARE, PACKAGE_CP, HWOUC,
                    PACKAGE_FILE_EXPLORE, PACKAGE_WALLPAPER_SERVICE);

    /**
     * 最大会场数
     */
    int MAX_SIT_COUNT = 400;
}
